Zebra ZPL Code - Clearing buffer question

G

Guest

Guest
Archived from groups: comp.periphs.printers (More info?)

I need to write some ZPL code that will clear out what ever is
currently printing on the label printer (in my case a Zebra 170PAX
label applicator system) before submitting a new label. For example, If
the printer is currently printing label 5 of 100, I want to
programatically mimic the action of taking the prijnter offline,
pressing Cancel, and put the printer back online, thus cancelling the
current print job and submitting the new job.


here is an excerpt of my label code:

^LH0,1219 /* Set Label home to Upper Right corner */
^LL1219 /* Label Length 1219 dots = ~6 inches */
^MD0 /* Media Darkness Leave at default */
^XA /* Start Format */

^CF0,30,^FT85,800 /* Chg font to 0, 30 dots high; move to 85,800
*/
^FB400,1,,C, /* Field Block - 400 wide, 1 line, Centered */
^FWB /* Field Orientation - Bottom up (270 degrees)
*/
^FDABB Inc.^FS /* Field Data, Field Separator */
^CF0,30,^FT115,800 /* Chg font to 0, 30 dots high; move to 115,800
*/
^FB400,1,,C, /* Field Block - 400 wide, 1 line, Centered */
^FWB /* Field Orientation - Bottom up (270 degrees)
*/
^FDGreensboro, North Carolina^FS /* Field Data, Field Separator */

^PQ100 /* Set Label Quantity to 100 */

^XZ /* End Format */

I have tried placing the ^JA /* Cancel All */ command ahead of the ^LH
but it doesn't work. I have also tried placing the ^JR /* Power on
Reset */ command ahead of the ^LH but it doesn't work either. I must
be doing something wrong! I have called Zebra three times and spoke to
three different techs, but they were of no help.
Anyone have any ideas how I can accomplish this?
 
G

Guest

Guest
Archived from groups: comp.periphs.printers (More info?)

If memory serves me the proper format is:
~JA for cancel and ~JR for POR
Tilde instead of caret

Jeff

<steven.strawn@us.abb.com> schreef in bericht
news:1106143165.595723.183480@c13g2000cwb.googlegroups.com...
>I need to write some ZPL code that will clear out what ever is
> currently printing on the label printer (in my case a Zebra 170PAX
> label applicator system) before submitting a new label. For example, If
> the printer is currently printing label 5 of 100, I want to
> programatically mimic the action of taking the prijnter offline,
> pressing Cancel, and put the printer back online, thus cancelling the
> current print job and submitting the new job.
>
>
> here is an excerpt of my label code:
>
> ^LH0,1219 /* Set Label home to Upper Right corner */
> ^LL1219 /* Label Length 1219 dots = ~6 inches */
> ^MD0 /* Media Darkness Leave at default */
> ^XA /* Start Format */
>
> ^CF0,30,^FT85,800 /* Chg font to 0, 30 dots high; move to 85,800
> */
> ^FB400,1,,C, /* Field Block - 400 wide, 1 line, Centered */
> ^FWB /* Field Orientation - Bottom up (270 degrees)
> */
> ^FDABB Inc.^FS /* Field Data, Field Separator */
> ^CF0,30,^FT115,800 /* Chg font to 0, 30 dots high; move to 115,800
> */
> ^FB400,1,,C, /* Field Block - 400 wide, 1 line, Centered */
> ^FWB /* Field Orientation - Bottom up (270 degrees)
> */
> ^FDGreensboro, North Carolina^FS /* Field Data, Field Separator */
>
> ^PQ100 /* Set Label Quantity to 100 */
>
> ^XZ /* End Format */
>
> I have tried placing the ^JA /* Cancel All */ command ahead of the ^LH
> but it doesn't work. I have also tried placing the ^JR /* Power on
> Reset */ command ahead of the ^LH but it doesn't work either. I must
> be doing something wrong! I have called Zebra three times and spoke to
> three different techs, but they were of no help.
> Anyone have any ideas how I can accomplish this?
>